<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>回收站</title>

<style type="text/css">
* {
	padding: 0px;
	margin: 0px;
}

body {
	border-bottom-color: #eeeeee;
}

#address {
	display: inline-block;
	height: 25px;
	margin: 5px 0 0 5px;
}

#top {
	width: 100%;
	text-align: center;
}

#top-title {
	width: 80%;
	font-size: 30px;
	display: inline-block;
	text-align: center;
	margin: 5px auto;
	background-color: #cee7ff;
}

#mod {
	width: 100%;
	height: 600px;
}

#mod-top {
	width: 100%;
	height: 520px;
}

#mod-top table {
	margin: 0px auto;
	width: 80%;
	border: 2px solid #0080ff;
	text-align: center;
}

#mod-top table th {
	background-color: #cee7ff;
}

#mod-top table td, #mod-top table th {
	border: 0.5px solid #42a0ff;
	height: 50px;
	width: 300px;
}

#back {
	font-size: 30px;
	color: red;
	display: inline-block;
}

#back a {
	color: green;
}

#deleteForever {
	font-size: 30px;
	color: red;
}

#deleteForever a {
	color: red;
}

#mod-bottom {
	margin-left: 300px;
	margin-top: 35px;
	width: 75%;
	height: 30px;
}

#go {
	float: left;
	margin-top: 30px;
}

#size {
	margin-top: 30px;
	width: 200px;
	float: left;
}

#mod-bottom-a {
	float: left;
	margin-top: 30px;
	width: 470px;
}
</style>

</head>

<body>
	<div id="all">
		<span id="address">>>当前位置:回收站</span>
		<div id="top">
			<span id="top-title">回收站</span>
		</div>
		<div id="mod">
			<div id="mod-top">
				<table cellspacing="0">
					<tr>
						<th></th>
						<th>文件名称</th>
						<th>文件路径</th>
						<th>类型</th>
						<th>所有者</th>
						<th>创建日期</th>
						<th>还原</th>
						<th>永久删除</th>
					</tr>
					<s:iterator value="%{#session.recyleBinList}">
					<s:if test="%{#session.userinfo.username==userinfo.username}">
						<tr>
							<td><img width="20px" height="20px"
								src='<s:property value="%{filetypeinfo.filetypeimage}"/>' /></td>
							<td><s:property value="%{filename}" /></td>
							<td><s:property value="%{filepath}" /></td>
							<td><s:property value="%{filetypeinfo.filetypename}" /></td>
							<td><s:property value="%{userinfo.username}" /></td>
							<td><s:property value="%{createdate}" /></td>
							<td><span id="back"><s:a
										href="/OAProject/file/file_back?fileid=%{fileid}">☺</s:a></span></td>
							<td><span id="deleteForever"><s:a
										href="/OAProject/file/file_deleteForever?fileid=%{fileid}"
										onclick="return confirm('删除后文件将不能恢复，是否确定进行此操作？')">☹</s:a></span></td>
						
						</tr>
					</s:if>
					</s:iterator>
				</table>
			</div>
			
		</div>
	</div>
</body>
</html>
